@import '@/app/styles/variables';

.form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
  gap: 32px;
  width: 100%;
  max-width: 522px;
}

.title_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.title {
  width: fit-content;
  color: #000;
  text-align: center;
  font-size: 32px;
  font-style: normal;
  font-weight: 500;
  line-height: 42px; /* 131.25% */
}

.agreement {
  color: #ababab;
  text-align: center;
  font-style: normal;
  font-weight: 400;
}
.agreement,
.link {
  font-size: 14px;
  line-height: 20px;
}

.buy {
  width: 360px;
  font-size: 20px;
  line-height: 26px; /* 130% */
  gap: 0;
  &:disabled .discount_price {
    opacity: 0.2;
  }
}

.discount_price {
  color: black;
  opacity: 0.4;
  text-decoration: line-through;
  &:disabled {
    opacity: 0.2;
  }
}

.buy_container {
  width: 100%;
  display: flex;
  align-items: center;

  flex-direction: column;
  gap: 16px;
}

.promo_input {
  background: #f3f3f3 !important;
  border-color: #f3f3f3 !important;
  align-items: center;
  input::placeholder {
    color: var(--simple-gray-evening, #ababab);
  }
}

.promo_message {
  margin-top: 2px;
  font-size: 16px;
  line-height: 22px;
}

.email {
  color: var(--simple-night, #000);
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
  align-self: self-start;
  margin-bottom: 16px;
}

.promo {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: fit-content;

  color: var(--simple-blue-day, #337cec);
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px; /* 137.5% */
}

.active {
  cursor: text;
  color: #1bc47d;
}

.expired {
  cursor: text;
  color: #ec3333;
}

.hide_placeholder {
  *::-webkit-input-placeholder {
    opacity: 0;
    color: #ababab;
  } /* Chrome <=56, Safari < 10 */
  *:-moz-placeholder {
    opacity: 0;
    color: #ababab;
  } /* FF 4-18 */
  *::-moz-placeholder {
    opacity: 0;
    color: #ababab;
  } /* FF 19-50 */
  *:-ms-input-placeholder {
    opacity: 0;
    color: #ababab;
  } /* IE 10+ */
  *::placeholder {
    opacity: 0;
    color: #ababab;
  } /* Modern Browsers */

  *:focus::-webkit-input-placeholder {
    opacity: 1;
  } /* Chrome <=56, Safari < 10 */
  *:focus:-moz-placeholder {
    opacity: 1;
  } /* FF 4-18 */
  *:focus::-moz-placeholder {
    opacity: 1;
  } /* FF 19-50 */
  *:focus:-ms-input-placeholder {
    opacity: 1;
  } /* IE 10+ */
  *:focus::placeholder {
    opacity: 1;
  } /* Modern Browsers */
}

@include media(sm) {
  .buy {
    width: calc(100%) !important;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 22px; /* 137.5% */
    display: flex;
    height: 64px;
    padding: 20px 48px;
    justify-content: center;
    align-items: center;
    gap: 0px;
  }
  .promo_message {
    font-size: 14px;
    line-height: 20px;
  }

  .email {
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 22px;
    margin-bottom: 8px;
  }

  .form {
    gap: 24px;
    max-width: unset;
  }
  .title_container {
    align-items: flex-start;
  }
  .title {
    font-size: 24px;
    line-height: 30px; /* 125% */
  }
  .agreement,
  .link {
    font-size: 12px;
    line-height: 16px;
  }
  .promo {
    font-size: 14px;
    line-height: 20px; /* 142.857% */
  }
}
